package com.junlong0716.enjoylearning.entity

import com.chad.library.adapter.base.entity.MultiItemEntity

/**
 * @author: 巴黎没有摩天轮Li
 * @description:
 * @date: Created in 上午10:39 2018/6/24
 * @modified by:
 */
class CollectionEntity : MultiItemEntity {

    companion object {
        //推荐视频
        const val ITEM_TYPE_VIDEO = 1
        //推荐音频
        const val ITEM_TYPE_AUDIO = 2
        //推荐文稿
        const val ITEM_TYPE_DOCUMENT = 3
    }

    /**
     * id : 13
     * knowledgeId : 42
     * userId : 1
     * knowledgeType : 1
     * knowledgeTitle : 抓娃娃
     * knowledgeContent : 123456
     * knowledgeAuthor : 1
     * coverImg : /file/20180623/1529768287060.png
     * fileAddress : /file/20180623/1529768286828.mp4
     * browseNumber : 0
     * praiseNumber : 0
     * commentNumber : 0
     * specialId : 0
     * createBy : 0
     * createDate : 1529768287000
     * updateBy : 0
     * updateDate : 1529807762046
     * remarks : user
     * delFlag : 0
     */

    var id: Int = 0
    var knowledgeId: Int = 0
    var userId: Int = 0
    var knowledgeType: Int = 0
    var knowledgeTitle: String? = null
    var knowledgeContent: String? = null
    var knowledgeAuthor: String? = null
    var coverImg: String? = null
    var fileAddress: String? = null
    var browseNumber: Int = 0
    var praiseNumber: Int = 0
    var commentNumber: Int = 0
    var specialId: Int = 0
    var createBy: Int = 0
    var createDate: Long = 0
    var updateBy: Int = 0
    var updateDate: Long = 0
    var remarks: String? = null
    var delFlag: String? = null

    override fun getItemType(): Int {
        return knowledgeType
    }
}
